package zjl.base;

import zjl.graph.Edge;

public class DirectedLink extends Edge {

    private int bandwidth = 0;

    private String srcPort;
    private String destPort;

    public DirectedLink(NodeBase b, NodeBase e, String sp, String dp, double weight, int bw) {
        super(b, e, weight);
        this.srcPort = sp;
        this.destPort = dp;
        this.bandwidth = bw;
    }

    public int getBandwidth() {
        return bandwidth;
    }

    public String getSrcPort() {
        return srcPort;
    }

    public String getDestPort() {
        return destPort;
    }
}